package org.jarraiders.musiclibrary.client;

import java.util.ArrayList;

import org.jarraiders.musiclibrary.shared.domain.TrackDTO;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface TracksServiceAsync {

	public void addTrack(TrackDTO track, AsyncCallback<TrackDTO> callback);

	void deleteTrack(String id, AsyncCallback<Boolean> callback);

	public void getTrackDetails(AsyncCallback<ArrayList<TrackDTO>> callback);

	void getTrack(String id, AsyncCallback<TrackDTO> callback);

	public void updateTrack(TrackDTO track, AsyncCallback<TrackDTO> callback);

	void searchTrack(String searchText, AsyncCallback<ArrayList<TrackDTO>> callback);
}
